package com.nuoniu.sibanyun.entity.cms;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import com.nuoniu.sibanyun.common.BaseEntity;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * <p>
 * 网站栏目
 * </p>
 *
 * @author 小啊刚
 * @since 2021-08-10
 */
@Data
@EqualsAndHashCode(callSuper = true)
@Accessors(chain = true)
@TableName("cms_column")
@ApiModel(value="CmsColumn对象", description="网站栏目")
public class CmsColumn extends BaseEntity {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "公司id")
    @TableField("company_id")
    private Integer companyId;

    @ApiModelProperty(value = "上级栏目id")
    @TableField("parent_id")
    private Integer parentId;

    @ApiModelProperty(value = "上级栏目名称")
    @TableField("parent_name")
    private String parentName;

    @ApiModelProperty(value = "所有上级栏目id")
    @TableField("parent_ids")
    private String parentIds;

    @ApiModelProperty(value = "所有上级栏目名称")
    @TableField("parent_names")
    private String parentNames;

    @ApiModelProperty(value = "级次")
    @TableField("level")
    private Integer level;

    @ApiModelProperty(value = "是否末级")
    @TableField("is_end")
    private Boolean isEnd;

    @ApiModelProperty(value = "栏目名称")
    @TableField("name")
    private String name;

    @ApiModelProperty(value = "栏目类型")
    @TableField("type")
    private Integer type;

    @ApiModelProperty(value = "备注")
    @TableField("remarks")
    private String remarks;

    @ApiModelProperty(value = "排序")
    @TableField("sort")
    private Integer sort;

    @ApiModelProperty(value = "链接地址")
    @TableField("url")
    private String url;


}
